home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
util
/
cli
/
LibMon.lha
/
LibMon.doc
< prev
next >
Wrap
Text File
|
1996-12-09
|
4KB
|
118 lines
Library Monitor v1.25
Copyright © Karl J. Ots
December 1996
Karl J. Ots
2/262 Barkly Street
North Fitzroy, Victoria, 3068
Australia.
email: fstckjo@lux.latrobe.edu.au
THIS PROGRAM IS MAILWARE! SEND ME AN E-MAIL OR A POSTCARD
(Really, I mean it! Send me a postcard! Please?)
NOTE:
Read the History.txt file for a summary on new features.
Disclaimer:
This program is provided "As Is", with no warrenty, expressed
or implied. The author is in no way responible for any problems
this program may cause to either your system or your health.
The author is trying to make this program as stable and usable as
possible, so send him (I mean me) reports of any problams you have.
This program is © Copyright. You are free to use and distribute
it, provided these documents and the source code accompany it at
all times. You are free to use concepts present in the source
code for any non-profit purpose, short of recompiling and
the program with your name on it.
I am open to suggestions on how to make this a better program.
Send all suggestions to either of my addresses above.
Library Manager / Monitor:
You may have noticed the name change. I found another Amiga
program called LibMan (on Aminet:util/libs), one that I did
not write. So I changed the name to LibMon.
What Is LibMon?
Not so long ago, I was getting into programming in a big way. I
quite enjoy living off the thought "If a program doesn't do what
you want it to, write one that does!". In particular, I had
problems when it came to using libraries. I have so many of
them that I can't fit all onto one floppy, much less one that has
to share it's space with other software. my problems came to a head
when I got the AmigaGuide software. Where was I going to fit a
60K library. In frustration, I wrote a short and dirty assembly
language program that opended and closed a specified library, thus
loading it into memory. It worked.
LibMon is the decendent of that program, incorperating many ideas
that I had but couldn't do in assembly. Previouse versions (LibMan)
were written in E. Although a good language, it's not really
suitable for systems programming, so I've ported it into C.
The compiler I've used is DICE v2.06.37 (Freeware), but I havn't
used any compliler-specific code, so it should re-compile on any
ANSI compiler (gcc, vbcc, etc), but I havn't tried it (some
feedback in this area would be nice). This change came about
because the old versions were crashing high end 4000s. Hopefully,
this one wont!
Description:
Phew! Now, exactly what does LibMon do?
LibMon can load, list or flush libraries. It can be used
individually, or applied to all libraries in LIBS: or memory.
LibMon requires OS2 (v36) or above.
Input:
LibMon uses the ReadArgs template to provide an easy interface.
The template looks like this:
LIBS=LIBNAMES/M,A=ALL/S,L=LIST/S,F=FLUSH/S
The elements in the template are as follows:
LIBNAMES: One or more library names to be affected.
ALL: Affects all libraries.
LIST: List library(s).
FLUSH: Flush libraries(s).
The LIST and FLUSH commands are mutually exclusive (cannot be used
at the same time), as are the LIBNAMES and ALL fields. An invalid
combination will cause the Usage message ot be displayed.
This argument chart may come in useful.
Switch Without LIBNAMES With LIBNAMES
DEFAULT * N/A - Usage Load LIBNAMES
ALL Load All Libraries * N/A - Usage
LIST List All Libraries List LIBNAMES
FLUSH Flush All Libraries Flush LIBNAMES
ALL LIST List All Libraries * N/N - Usage
LIST FLUSH * N/A - Usage * N/A - Usage
ALL LIST FLUSH * N/A - Usage * N/A - Usage
Output:
There are four different types of output for LibMon:
Usage Usage information displayed.
Load and Flush Both display the name, and the version.revision
of the libraries.
List Displays the name, version.revision, prioity
and open count of the libraries.
Errors:
If LibMon can't perform a task, then it will inform you, and
will continue with the next item, except if LIBS: cannot be
locked, in which case the program will end (This will not be
a problem for most people).
Well, that's about it. One final note: You can break (ctrl-c)
during loading and listing of libraries. Have fun!